package com.demo.serviceImpl;

import java.util.List;

import com.demo.dao.UserDao;
import com.demo.daoImpl.UserDaoImpl;
import com.demo.model.Dog;
import com.demo.model.User;
import com.demo.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao dao = new UserDaoImpl();
	@Override
	public User login(User user) {
		return dao.login(user);
	}
	@Override
	public User login1(User user) {
		return dao.login1(user);
		
	}
	@Override
	public int regist(User user) {
		return dao.regist(user);
		
	}
	@Override
	public List<User> getAlluser() {
		return dao.getAlluser();
		
	}
		
	@Override
	public int delUser(String userId) {
		return dao.delUser(userId);
		
	}
	@Override
	public User selOne(String userId) {
		return dao.selOne(userId);
		
	}
	@Override
	public int updateUser(User user) {
		return dao.updateUser(user);
		
	}
	@Override
	public List<Dog> getAlldog() {
		return dao.getAlldog();
	}
	@Override
	public int delDog(String userId) {
		return dao.delDog(userId);
		
	}
	@Override
	public Dog selOnedog(String userId) {
		return dao.selOnedog(userId);
		
	}
	@Override
	public int updateDog(Dog dog) {
		return dao.updateDog(dog);
		
	}
	@Override
	public int addOnedog(Dog dog) {
		return dao.addOnedog(dog);
		
	}


}
